class Block extends Sprite {
    constructor(dir, pos) {
        super(dir, 'images/block.png', pos[0], pos[1])
        this.lifes = pos[2] || 1
        this.alive = true
        this.level = 1
    }
    killed() {
        this.lifes--
        if (this.lifes == 0) {
            this.alive = false
        }
    }
}